package XMFramework.Core
{
	import XMFramework.Interface.IGlobalHolder;
	
	internal class SGlobalHolder implements IGlobalHolder
	{
		private var storage : Object	=	new Object();
		
		/**
		 * 
		 * @param name
		 * @param value
		 * 
		 */				
		public function setVariable(name:String, value:*):void
		{
			if( name )
				if( name.length != 0 )
					storage[name]	=	value;
		}
		
		/**
		 * 
		 * @param name
		 * @return 
		 * 
		 */		
		public function getVariable(name:String):*
		{
			if( name )
				if( name.length != 0 )
					return storage[name];
				
			return null;
		}
	}
}